import os
with open('config.txt','w+') as file:
    file.write(os.path.dirname(os.path.realpath(__file__)))